#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Author: renjin@bit.edu.cn
# @Date  : 2024-08-28

import cv2

from spirems import Client, def_msg
import threading
import time


cc = Client(
    '/system/service',
    'std_msgs::String',
    'std_msgs::StringMultiArray'
)
while 1:
    req = def_msg('std_msgs::String')
    req['data'] = 'topic list'
    print(cc.request(req))
    time.sleep(3)
